package com.example.aitasks.repo;

import com.example.aitasks.model.TaskResult;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;

public interface TaskResultRepository extends JpaRepository<TaskResult, Long> {
    List<TaskResult> findTop10ByTaskIdOrderByRunAtDesc(Long taskId);
}
